package com.casems.service;

import com.casems.commons.dto.CasesDTO;
import com.casems.commons.vo.CasesVO;
import com.casems.entity.Cases;
import com.baomidou.mybatisplus.extension.service.IService;
import com.casems.entity.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tch
 * @since 2023-05-17
 */
public interface CasesService extends IService<Cases> {

    List<CasesDTO> getByUserId(int userId);

    List<CasesDTO> getByUser(User user);

    boolean addCases(CasesVO casesVO);

    boolean deleteCases(CasesVO casesVO);

    boolean updateCase(CasesVO casesVO);

    Map<String, Integer> getCaseDailyData();

    Map<String, Object> getCaseData();

    Map<String, Object> getCaseAnalyseData();
}
